﻿<UserControl x:Class="ChemProV.PFD.EquationEditor.EquationEditor"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:eq="clr-namespace:ChemProV.PFD.EquationEditor"
    mc:Ignorable="d"
    d:DesignHeight="150" d:DesignWidth="321"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <UserControl.Resources>
        <eq:ScollViewerHeightConverter x:Key="ScollViewerHeightConverter" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White">
        <StackPanel>
            <sdk:Label Background="Silver" Content="Equations" Padding="3" FontSize="14" HorizontalContentAlignment="Center" />
        
        <ScrollViewer 
            x:Name="EquationScrollViewer"
            Width="Auto" 
            VerticalScrollBarVisibility="Auto" 
            HorizontalScrollBarVisibility="Auto" 
            Height="{Binding Height, Mode=OneWay, Converter={StaticResource ScollViewerHeightConverter}}"
            >
            <StackPanel 
                
                Height="Auto" 
                HorizontalAlignment="Left" 
                Margin="0,5,0,0" 
                Name="EquationStackPanel" 
                VerticalAlignment="Top" 
                Width="Auto"></StackPanel>
        </ScrollViewer>
        </StackPanel>
    </Grid>
</UserControl>
